<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection" />
    <meta content="emai=no" name="format-detection" />
    <link rel="stylesheet" type="text/css" href="/css/common.css" />
    <link rel="stylesheet" type="text/css" href="/css/order.css" />
    <title>我的订单</title>
</head>
<body>
    <div class="wrapper">
        <div class="o-list">
            <?php if($orders):?>
            <ul class="o-list-group">
            	<?php foreach ($orders as $item):?>
                <li class="o-list-item">
                    <section class="title clear">
                        <span class="special s-right"><?php echo $item['status_name']?></span>
                        <label>订单号：</label><?php echo $item['order_sn']?>
                    </section>
                    <section class="detail flex-wrapper flex-align-center">
                        <div class="thumbnail">
                            <img src="<?php if($item['goods_thumb']) echo $shop_base_url . $item['goods_thumb']?>" />
                        </div>
                        <div class="title flex-1">
                            		<?php echo $item['goods_name']?>
                        </div>
                        <div class="price">
                            <span class="unit-price"><span>&#165;</span><?php echo $item['goods_price']?></span>
                            <span class="count">x <?php echo $item['goods_number']?></span>
                        </div>
                    </section>
                    <section class="total clear">
                        <span class="btn-order s-right" data-href="/user/orderdetail?id=<?php echo $item['order_id']?>&goods_sn=<?php echo $item['goods_sn']?>">订单详情</span>
                        <label>总价：</label><span class="special"><span>&#165;</span><?php echo $item['order_amount']?></span>
                    </section>
                </li>
                <?php endforeach;?>
            </ul>
            <?php else:?>
            <div class="no-result">
                <img src="/img/no_order.png" /><br/>
                <img class="goto" src="/img/txt_gotoshop.png" /><br />
                <a class="goto" href="/shop/mobile">芝士福利社</a>
            </div>
            <?php endif;?>
        </div>
    </div>
    <script src="/js/zepto-1.1.6.js" type="text/javascript"></script>
    <script src="/js/common.js" type="text/javascript"></script>
</body>
</html>